﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace ProjectWizardManagement.Entity.Model
{
    public class AssociatedProject
    {
        public AssociatedProject()
        {
            ProjectTasks = new HashSet<Task>();
            ProjectEvents = new HashSet<CalendarEvent>();
        }

        [Key]
        public int Id { get; set; }

        public Project Project { get; set; }

        [Display(Name = "Project Tasks")]
        public ICollection<Task> ProjectTasks { get; set; }

        [Display(Name = "Project Events")]
        public ICollection<CalendarEvent> ProjectEvents { get; set; } 
    }
}
